<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/extremecomponents.tld" prefix="ec" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'user_list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" type="text/css" href="images/eXtremeComponents/extremecomponents.css" />

  </head>
  
  <body>
   <ec:table items="userList"
				action="${pageContext.request.contextPath}/userAction!listUser.action"
				imagePath="${pageContext.request.contextPath}/images/eXtremeComponents/table/*.gif"
				title="用户列表" width="100%" rowsDisplayed="10" var="user">
				<ec:row highlightRow="true">
					<ec:column property="user_id" title="ID" >
						     
					</ec:column>
					<ec:column property="user_name" title="用户名"  >
						      ${user.user_name}
					</ec:column>
					<ec:column property="user_role_id" title="角色" >
						      ${user.user_role_id}
					</ec:column>
					<%--<ec:column property="user_group_id" title="所在组" width="3" >
						      ${user.user_group_id}
					</ec:column>
					--%><ec:column property="user_register_time" title="注册时间" width="3">
						      ${user.user_register_time}
					</ec:column>
					<ec:column property="user_status" title="状态" >
						      ${user.user_status}
					</ec:column>
					<ec:column property="null2" title="操作" sortable="false"
						filterable="false" viewsDenied="xls">
						[<a onMouseOver="this.style.cursor='hand'" 
							href="userAction!showSetModerator.action?user.user_id=${user.user_id}">删除</a>]
						[<a onMouseOver="this.style.cursor='hand'" 
							href="userAction!showSetModerator.action?user.user_id=${user.user_id}">设为版主</a>]
						[<a onMouseOver="this.style.cursor='hand'"  
							href="userAction!resetPassword.action?user.user_id=${user.user_id}">重置密码</a>]
					</ec:column>
				</ec:row>
		</ec:table>
  </body>
</html>
